#include <iostream>
using namespace std;
class Cube{
    private:
        int m_L;
        int m_W;
        int m_H;
    public:
        void setML(int l){
            m_L=l;
        }
        int getML(){
            return m_L;
        }
        void setMW(int w){
            m_W=w;
        }
        int getMW(){
            return m_W;
        }
        void setMH(int h){
            m_H=h;
        }
        int getMH(){
            return m_H;
        }
        int s(){
            return (2*m_L*m_W+2*m_L*m_H+2*m_W*m_H);
        }
        int v(){
            return m_L*m_W*m_H;
        }
};

bool isSame(Cube &c1,Cube &c2){
    if (c1.getML()==c2.getML()&&c1.getMW()==c2.getMW()&&c1.getMH()==c2.getMH()){
        return true;
    }else{
        return false;
    }
}

int main(){
    Cube c1;
    c1.setML(10);
    c1.setMW(10);
    c1.setMH(10);
    cout<<"c1的面zhi="<<c1.s()<<endl;
    cout<<"c1的体zhi="<<c1.v()<<endl;

    Cube c2;
    c2.setML(10);
    c2.setMW(10);
    c2.setMH(10);
    cout<<"c2的面zhi="<<c2.s()<<endl;
    cout<<"c2的体zhi="<<c2.v()<<endl;

    bool ret= isSame(c1,c2);
    if (ret==true){
        cout<<"c1等于c2"<<endl;
    }else{
        cout<<"c1不等于c2"<<endl;
    }
    return 0;
}
